<?php $this->setLayout('template'.DS.'account.phtml');
$this->startBlock();
?>
<script>
//
if (self != top) top.location.href = window.location.href
function checkform(form1){
	if(form1.username.value.length == 0){
		alert("请填写登陆名！");
	form1.username.focus();
	return false;
	}
	if(form1.password.value.length == 0){
		alert("请输入登陆密码！");
	form1.password.focus();
	return false;
	}
}
//
$(function(){
    $('#register').bind('click',function(){
          self.location='<?php echo $this->getUrl(NULL,'register','account')?>';
    })
})
</script>
<!-- 会员注册 -->
<div class="public_width userlogin">
	<h2>会员登录</h2>
	<form name="login_form" method="post" action="<?php echo $this->getUrl(NULL,'login')?>" onsubmit="return checkform(this)">
		<ul><label>登 陆 名: </label><input type="text" id="username" name="username" maxlength="30" size="20" /></ul>
		<ul><label>登陆密码: </label><input type="password" id="password" name="password" maxlength="30" size="20" /></ul>
		<ul><label>验 证 码: </label><input type="text" name="validatecode" id="validatecode" maxlength="20" size="20" /></ul>
                <ul><?php echo $this->validateCodeImage()?></ul>
		<ul>
                    <label>&nbsp;</label><input type="hidden" name="check" value="yes" />
                    <input type="hidden" name="check" value="yes" />
                    <button class="button" type="submit" >登陆</button>
<!--                    <button id ="register"class="button" type="button">注册</button>-->
                </ul>
	</form>

</div>
<?php $this->endBlock();?>



